package construction.decorator;

public class Test {
    public static void main(String[] args) {
        Drink drink = new ShortBlack();
        System.out.println(drink);

        //加一分巧克力作料
        drink = new Chocolate(drink);
        System.out.println(drink);
        //再添加一份巧克力作料
        drink = new Chocolate(drink);
        System.out.println(drink);

        //添加一份牛奶作料
        drink = new Milk(drink);
        System.out.println(drink);

    }
}
